<?php
class Vehicle extends AppModel {
	var $name = 'Vehicle';
	var $displayField = 'dominio';
//	var $validate = array(
//		'extranjero' => array(
//			'boolean' => array(
//				'rule' => array('boolean'),
//				//'message' => 'Your custom message here',
//				//'allowEmpty' => false,
//				//'required' => false,
//				//'last' => false, // Stop validation after this rule
//				//'on' => 'create', // Limit validation to 'create' or 'update' operations
//			),
//		),
//		'rodamiento' => array(
//			'boolean' => array(
//				'rule' => array('boolean'),
//				//'message' => 'Your custom message here',
//				//'allowEmpty' => false,
//				//'required' => false,
//				//'last' => false, // Stop validation after this rule
//				//'on' => 'create', // Limit validation to 'create' or 'update' operations
//			),
//		),
//            		'vehicles_types_id' => array(
//			'notempty' => array(
//				'rule' => array('notempty'),
//				'message' => 'El tipo de Vehiculo no puede estar Vacio',
//				'allowEmpty' => false,
//				//'required' => false,
//				//'last' => false, // Stop validation after this rule
//				//'on' => 'create', // Limit validation to 'create' or 'update' operations
//			),
//		),
//	);
	//The Associations below have been created with all possible keys, those that are not needed can be removed

	var $belongsTo = array(
		'Models' => array(
			'className' => 'Models',
			'foreignKey' => 'models_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'VehiclesTypes' => array(
			'className' => 'VehiclesTypes',
			'foreignKey' => 'vehicles_types_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

//	var $hasAndBelongsToMany = array(
//		'Type' => array(
//			'className' => 'Type',
//			'joinTable' => 'vehicles_types',
//			'foreignKey' => 'vehicle_id',
//			'associationForeignKey' => 'type_id',
//			'unique' => true,
//			'conditions' => '',
//			'fields' => '',
//			'order' => '',
//			'limit' => '',
//			'offset' => '',
//			'finderQuery' => '',
//			'deleteQuery' => '',
//			'insertQuery' => ''
//		)
//	);

}
